package edu.whut.service;

import edu.whut.entity.Approval;
import edu.whut.entity.Comment;
import edu.whut.entity.Creation;

import java.util.List;

public interface CreationService {

    Boolean addCreation(Creation creation);

    Boolean deleteCreation(Long creationId);

    Boolean updateCreation(Creation creation);

    Creation getCreation(Long creationId);

    /**
     * 功能：通过用户名得到创作
     * @param username
     * @return 列表形式的创作
     */
    List<Creation> getCreationByUsername(String username);

    List<Creation> getAllCreation();

    /**
     * 功能：通过PoemId得到创作
     * @param poemId
     * @return 列表形式的创作
     */
    List<Creation> getCreationByPoemId(Long poemId);

}
